import React from 'react';
import { ceshi } from '../api/list';
export default function LL() {
  enum Color {
    Red,
    Green,
    Blue,
  }
  let c: Color = Color.Green;
  console.log(c);
  function getList() {
    ceshi()
      .then((data) => {
        console.log(data);
      })
      .catch((err) => {
        console.log(err);
      });
  }
  return (
    <div>
      <div>
        <button onClick={getList}>获取后端数据</button>
      </div>
    </div>
  );
}
